import request from '../utils/request'
// 用户接口

export function userLogin(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data: data
    })
}

// 列表查询
export function userList(data) {
    return request({
        url: '/user/list',
        method: 'post',
        data: data
    })
}

// 保存
export function userSave(data) {
    return request({
        url: '/user/save',
        method: 'post',
        data: data
    })
}

// 更新
export function userUpdate(data) {
    return request({
        url: '/user/update',
        method: 'post',
        data: data
    })
}

// 删除
export function userDelete(data) {
    return request({
        url: '/user/delete',
        method: 'post',
        data: data
    })
}

// 编辑角色
export function userEditRole(data) {
    return request({
        url: '/user/edit-role',
        method: 'post',
        data: data
    })
}
